package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.RequestBody;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     * @return
     */
    int addEmployee( EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param epqd
     * @return
     */
    PageResult findEmployeeByPage(EmployeePageQueryDTO epqd);

    /**
     * 修改员工状态
     * @param status
     * @param id
     * @return
     */
    int updateStatus(Integer status,long id);

    /**
     * 根据ID查询员工
     * @param id
     * @return
     */
    Employee findByIdEmpkoyee(Integer id);

    /**
     * 员工修改
     * @param employeeDTO
     * @return
     */
    int updateEmployee(EmployeeDTO employeeDTO);
}
